package org.zjx.analysis.analyze.tap;


import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class LXGTabAnalysis extends BaseTabAnalysis {

    public LXGTabAnalysis(IWindow window) {
        super("留香阁", window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 393, 364);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(168, 104, 631, 489);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(219, 24, 258, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAACgAAAAOCAYAAABdC15GAAAD4klEQVR42pWUjVvTVRTH94/1AGVkmRE0IgGnacSj0Z6KmBSmMTdHvAnDxsY23DSHKDFhvM3Bhk5eEkJlDEIQRRjvxLuVPfTtd89vv7Xf5orO83yee3bu+d37vfecXUmc1AjGWzILck47UKL34pMCB15JMf47yYaYc/GpJqSduAaFqgM660/IUtgh7MP4SuOk/cJjsZBYG4YQad19U4hlbx+9QuLMdYPYqxltA6JNt7b/CK51GUO+QMzvZuc3IGHOA/88EjMuofBCF6Qf22iRAzIrbDcfUmLayWvIlF8nP1vxIwnM/LQeproBVFv7UF7jhfKCG88C61hd24E024Z9H5hFotitCuzPtCCwsIni6jtobPcjT90hQqFqQ7vnEe1HAiuMd5EgrcHgw1k8/+0F+YzewaeYW9xEXIqeYCaT1yNP2Yr/a7mFrbQms8/POkjowvJWVN7m1u9IPGQmkSKBJ/LtePHnLgXPaz1IOW4lX3+5n8Rl5tTR79fTuH7NrIW6sovLcxMm272ojQxX+qGp8hDqSjcOHL4UEni21IWWzjHyd3f/QkGRk9jeCZZeVisWKNjEkxU0O/0YnVgMxRyuUdHGCe/piP2H9CjRebiyrlH8ybNV/DK5hOXVHQwNz1JsenYNqopOvJFuxKupeoKZpqqLxnLDbRrvjwS46s0EW6iBO4gep9R8lSSenkmuB+eQ9eUNmmCwJh5/vIQ3M2qQdMTM9VkvrNcHkJplRXzKRTQ5R0KCfx6ewfEv6km0s3scvrF58j/KvYHRR/8ctLHNR2vzN3iL/ORjFvQPTYdyFrmS56vb8Nr7Bu4GgwLlp+177qPPzthJ4BH5VSjOOXBK5cDU9Cpm5tZCBBY2uHGdYDdYZfaiiLsxmdxGwvny94nW1Vl68LWmlfIFq2+6zwu0tw/z167tDMHs8dOVqFiHZwxxyReRkFxJLK/wTd7i8nM9Fc3SyjbNs0MJMFNV3OIqco8T9Ct3ywsiunsncTK/gRPcwgts6uAFslGAGWvYyJiTEyiIY6xvPMfE1BLOlbW/FM9d/qkI/4ZKXNyKaouXfJbj9o4Td/omKZZXaIdCeVMsMPwUgkXGnJ5RJLxbHoIJ3Iu9TKDpam/UnDBfcL45TGA7/xhHbtzq8oli7DkIFxifVEZ5bZ0jorxwtDXuqLVJ4HcOKEtjv6WKwkY43X5eYJnOtec/idboJmHx7xQTo+Nz//kNO1ikwDNFzeRn5/5AYsIJN99YABK24cGM7yE9ZojmQ12Ig+nakDCBRGk5vtHYoSxxRFPagm+LHbQ2HSpIra0HSYd15AuViORojgXp2Sby/wbV9MfvzLXCwQAAAABJRU5ErkJggg==");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
